package com.euond.permission.entities;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.euond.common.core.entities.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * 角色资源表
 */
@Setter
@Getter
@TableName(value = "sys_role_resource")
public class RoleResource extends BaseEntity {

    /**
     * 租赁公司ID
     */
    private Long companyId;

    /**
     * 角色ID
     */
    private Long roleId;

    /**
     * 角色code
     */
    @TableField(exist = false)
    private String roleCode;

    /**
     * 角色名
     */
    @TableField(exist = false)
    private String roleName;

    /**
     * 资源ID
     */
    private Long resourceId;

    /**
     * 资源名
     */
    @TableField(exist = false)
    private String resourceName;

    /**
     * 权限值
     */
    @NotNull
    private Integer PermissionVal;
}
